﻿@model IEnumerable<ADShop.Models.Member>

@{
    ViewBag.Title = "Index";
}

<p>
    @Html.ActionLink("Create New", "Create", null, new { @class = "btn btn-green" })
</p>

<div class="panel panel-default">
    <div class="panel-heading">
        <i class="fa fa-external-link-square"></i>
        Danh Mục Nhà Sản Xuất
        <div class="panel-tools">
            <a class="btn btn-xs btn-link panel-collapse collapses" href="#">
            </a>
            <a class="btn btn-xs btn-link panel-config" href="#panel-config" data-toggle="modal">
                <i class="fa fa-wrench"></i>
            </a>
            <a class="btn btn-xs btn-link panel-refresh" href="#">
                <i class="fa fa-refresh"></i>
            </a>
            <a class="btn btn-xs btn-link panel-expand" href="#">
                <i class="fa fa-resize-full"></i>
            </a>
            <a class="btn btn-xs btn-link panel-close" href="#">
                <i class="fa fa-times"></i>
            </a>
        </div>
    </div>
    <div class="panel-body">
        <table class="table table-hover" id="sample-table-1">
            <thead>
                <tr>
                    <th>#</th>
                    
                    <th>Email User</th>
                    <th>Password</th>
                    <th>Phân Quyền</th>
                    <th>Active</th>
                    <th>Chức Năng</th>
                </tr>
            </thead>
            <tbody>
                @foreach (var items in Model)
                {
                    <tr>
                        <td>@items.IDUser</td>
                       
                        <td>@Html.ActionLink(@items.UserEmail, "Details", new { id = @items.IDUser })</td>
                        <td>@items.Password</td>
                        <td>@items.IDPrivilege</td>
                        <td>
                            @items.Active
                        </td>
                        <td>
                            @Html.ActionLink("Sửa", "Edit", new { id = @items.IDUser }, new { @class = "label label-warning" })
                            @Html.ActionLink("Xóa", "DeleteConfirmed", new { id = @items.IDUser }, new { @class = "label label-danger", onclick = "return confirm('Are you sure to delete this item?')" })
                        </td>
                    </tr>
                }
            </tbody>
        </table>
    </div>
</div>
